package com.wealth.order.enums;

/**
 * 收货方式 
 * @author chan
 *
 */
public enum ConsigneeTypeEnum {
	
	EXPRESS(1,"快递"),TAKEBYYOURSELF(2,"自提");
	
	private int value;
	private String comment;
	private ConsigneeTypeEnum(int value,String comment){
		this.value = value;
		this.comment =comment;
	}
	
	public int getValue(){
		return value;
		
	}
	public String getComment(){
		return comment;
	}
	public static ConsigneeTypeEnum get(int value){
		for (ConsigneeTypeEnum o:ConsigneeTypeEnum.values()) {
			if(o.value ==value){
				return o;
			}
		}
		return null;
	}
	
}
